<?xml version="1.0" encoding="UTF-8"?>
<!--
  Created by IntelliJ IDEA.
  User: lukman
  Date: 6/24/11
  Time: 11:54 AM
-->
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<head>
    <title>Simple JSF Facelets page</title>
</head>

<body>
<ui:composition template="/resources/template/yiiTwoColtemplate.xhtml">

    <ui:define name="contentpart">
        <div id="content">
            <p:panel header="Users">
                <h:form id="tab">


                    <p:dataGrid var="uzer" paginator="true"
                                value="#{anasitUserBean.anasitUserList}"
                                columns="3" rows="3"
                                paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                rowsPerPageTemplate="3,6,9,12,15">
                        <p:column>
                            <p:panel header="#{uzer.name.lastName} #{uzer.name.firstName}">
                                <h:panelGrid columns="1">
                                    <h:graphicImage url="/resources/css/img/nurse_32.png"/>
                                    <h:outputText value="#{uzer.name.firstName}"/>
                                    <h:outputText value="#{uzer.name.middleName}"/>
                                    <h:outputText value="#{uzer.name.lastName}"/>

                                </h:panelGrid>
                            </p:panel>
                        </p:column>
                    </p:dataGrid>

                </h:form>
            </p:panel>
        </div>
    </ui:define>
    <ui:define name="operationspart">
        <h:form>
            <p:menu>
                <p:submenu label="User Operations">
                    <p:menuitem value="Create User" url="create.xhtml"/>
                    <p:menuitem value="Manage Users" url="manage.xhtml"/>
                </p:submenu>
            </p:menu>
        </h:form>
    </ui:define>
</ui:composition>
</body>

</html>